package top.whysu.study.thinkinjava.chapter8.polymorphism.ex10;

public class PrivateOverride {
    private void f() {
        System.out.println("private f()");
    }

    public static void main(String[] args) {
        // 不能覆盖父类的私有方法，这里打印 private f()
        PrivateOverride po = new Derived();
        po.f();
    }

}